home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.2 Development Libraries / SGI IRIX 6.2 Development Libraries.iso / dist / gl_dev.idb / usr / include / gl / port.h.z / port.h
Encoding:
C/C++ Source or Header  |  1996-03-15  |  668 b   |  29 lines

  1. #ifndef    __GL_PORT_H__
  2. #define    __GL_PORT_H__
  3. /*
  4.  *    Defines for colors used by window manager tools
  5.  *
  6.  *            Paul Haeberli - 1984
  7.  *
  8.  */
  9. #include <stdio.h>
  10. #include <gl/device.h>
  11.  
  12. #define MIN(a, b)    (((a) < (b)) ? (a) : (b))
  13. #define MAX(a, b)    (((a) > (b)) ? (a) : (b))
  14. #define ABS(a)        (((a) > 0) ? (a) : -(a))
  15.  
  16. #define GREY(x)         (16+(x))                    /* shades of grey */
  17. #define DESKTOP(x)      (8+(x))                     /* desktop colors */
  18.  
  19. #define COLORSYS_RGB    1
  20. #define COLORSYS_CMY    2
  21. #define COLORSYS_HSV    3
  22. #define COLORSYS_HLS    4
  23. #define COLORSYS_YIQ    5
  24.  
  25. float getgamma();
  26.  
  27. #define PORTDEF        /* for backwards compatibility */
  28. #endif    /* !__GL_PORT_H__ */
  29.